
package trabalhotec.Negocios;

import java.sql.SQLException;
import java.util.Vector;
import java.util.logging.Level;
import java.util.logging.Logger;


public class Clientes {
    trabalhotec.BD.Cliente cliente = new trabalhotec.BD.Cliente();
    public boolean cadCli(Long CPF,String Nome,String Email,char sexo){
        boolean suc =true;
        try {
            cliente.cadCliente(CPF, Nome, Email, sexo);
        } catch (SQLException ex) {
            suc=false;
        }
        return suc;
    }
    public Vector<Vector<String>> buscavoos(Long CPF){     
        return cliente.voosdecliente(CPF);

    }
    public Vector<Vector<String>> buscaClientes(String nome,Long cpf){
        Vector<Vector<String>> cli = new Vector<Vector<String>>();
        try {
            cli= cliente.buscaCliente(nome, cpf);
        } catch (SQLException ex) {
            cli = null;
        }
        return cli;
    }
}
